package multidraw;

import java.awt.BorderLayout;

import javax.swing.JLabel;
import javax.swing.JPanel;

import multidraw.model.DrawingCanvasModel;
import multidraw.model.ModelObserver;

public class ClientListPanel extends JPanel implements ModelObserver {

	private DrawingCanvasModel myModel;
	
	private JLabel myName;
	
	public ClientListPanel(DrawingCanvasModel m, String name) {
		myModel = m;
		myModel.attachObserver(this);
		
		setLayout(new BorderLayout());
		
		myName = new JLabel("<html>Logged in as <i>" + name + "</i></html>");
		add(myName, BorderLayout.NORTH);
	}
	
	@Override
	public void updateContent() {
		// TODO Auto-generated method stub
		repaint();
	}

}
